#include<cstdio>

int main()
{
    double h, sum;

    scanf("%lf",&h);

    sum = h;

    for(int i=1; i<=9; i++)
    {
        h = h/2;
        sum = sum + h*2;
    }

    printf("%g\n%g", sum, h/2);

    return 0;
}